From 45298435ed7eb18e221336add3ce5b40bb41b13f Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sun, 27 Mar 2005 17:34:16 +0000 Subject: [PATCH] Removed legacy BEGIN/COMMIT pair --- includes/Article.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index 1b83657915..091adc3004 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1089,9 +1089,7 @@ class Article { # It's important that we either rollback or complete, otherwise an attacker could # overwrite cur entries by sending precisely timed user aborts. Random bored users # could conceivably have the same effect, especially if cur is locked for long periods. - if( $wgDBtransactions ) { - $dbw->query( 'BEGIN', $fname ); - } else { + if( !$wgDBtransactions ) { $userAbort = ignore_user_abort( true ); } @@ -1128,9 +1126,7 @@ class Article { } } - if( $wgDBtransactions ) { - $dbw->query( 'COMMIT', $fname ); - } else { + if( !$wgDBtransactions ) { ignore_user_abort( $userAbort ); } -- 2.20.1